package com.neu.pojo;

public class Patient {//患者
	private String name;//患者的名字
	private String birthday;//患者的生日
	private String sex;//患者的性别
	private String id;//患者的身份证号
	private String phone;//患者的手机号
	private String closeName;//患者的紧急联系人名字
	private String closePhone;//患者的紧急联系人电话

	//构造
	public Patient(String id) {
		super();
		this.id = id;
	}
	public Patient() {
		super();
	}
	public Patient(String name, String birthday, String sex, String id, String phone, String closeName,
			String closePhone) {
		super();
		this.name = name;
		this.birthday = birthday;
		this.sex = sex;
		this.id = id;
		this.phone = phone;
		this.closeName = closeName;
		this.closePhone = closePhone;
	}

	//set and get
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCloseName() {
		return closeName;
	}
	public void setCloseName(String closeName) {
		this.closeName = closeName;
	}
	public String getClosePhone() {
		return closePhone;
	}
	public void setClosePhone(String closePhone) {
		this.closePhone = closePhone;
	}
	@Override
	public String toString() {
		return "{\"name\":\"" + name + "\",\"birthday\":\"" + birthday + "\",\"sex\":\"" + sex + "\",\"id\":\"" + id
				+ "\",\"phone\":\"" + phone + "\",\"closeName\":\"" + closeName + "\",\"closePhone\":\"" + closePhone
				+ "\"}";
	}
}	
				